package com.google.code.chaotic.rpc;

import com.google.code.chaotic.client.LoginDto;
import com.google.code.chaotic.shared.AuthException;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("auth")
public interface AuthSvc extends RemoteService {

	public LoginDto login(String username, String password) //
			throws AuthException;

	public LoginDto getLoginDto(String sessionId) //
			throws AuthException;

	public void logout(String sessionId);
}
